<template>
	<!-- 	<page-meta>
		<navigation-bar :title="nbTitle" :title-icon-radius="titleIconRadius" :subtitle-color="nbFrontColor"
			:loading="nbLoading" :front-color="nbFrontColor" :background-color="nbBackgroundColor" />
	</page-meta> -->
	<view>

		<contact-card :isEdit="false" :list="list" @clickCard="clickCard"></contact-card>
	</view>
</template>

<script>
	import {
		teacherInformation
	} from "@/api/class/class.js"
	export default {
		data() {
			return {
				nbTitle: '班级通讯',
				titleIconRadius: '20px',
				nbLoading: false,
				nbFrontColor: '#000000',
				nbBackgroundColor: '#fcc10d',
				list: []

			}
		},
		onLoad(option) {
			const classId = JSON.parse(decodeURIComponent(option.classId));
			teacherInformation(classId).then((res) => {
				this.list = res
			})
		},
		methods: {
			addContact() {
				// console.log("添加联系人");
			},
			clickCard(e) {
				console.log("e: " + JSON.stringify(e));
			}
		}
	}
</script>

<style>

</style>
